package a.j;

import a.c.e;
import a.i.v;

import java.util.Iterator;

public class tc
{
  public static boolean a;
  
  public static class a_
    implements uc
  {
    private pg a;
    public static boolean b;
    
    public a_(pg parampg)
    {
      this.a = parampg;
    }
    
    public sc a(double paramDouble1, double paramDouble2, int paramInt, boolean paramBoolean)
    {
      boolean bool = ld.E;
      if (!bool) {
        if (paramInt == -1) {
          return new sc(this.a, paramDouble1, paramDouble2, paramBoolean, 0, 1, 2, 3, 4, 6, 5);
        }
      }
      if (!bool) {
        if ((paramInt & 0x4) != 0) {
          return new sc(this.a, paramDouble1, paramDouble2, paramBoolean, 0);
        }
      }
      if (!bool) {
        if ((paramInt & 0x8) != 0) {
          return new sc(this.a, paramDouble1, paramDouble2, paramBoolean, 1);
        }
      }
      if (!bool) {
        if ((paramInt & 0x20) != 0) {
          return new sc(this.a, paramDouble1, paramDouble2, paramBoolean, 2);
        }
      }
      if (!bool) {
        if ((paramInt & 0x2) != 0) {
          return new sc(this.a, paramDouble1, paramDouble2, paramBoolean, 3);
        }
      }
      if (!bool) {
        if ((paramInt & 0x1) != 0) {
          return new sc(this.a, paramDouble1, paramDouble2, paramBoolean, 4);
        }
      }
      if (!bool) {
        if ((paramInt & 0x10) != 0) {
          return new sc(this.a, paramDouble1, paramDouble2, paramBoolean, 5);
        }
      }
      if ((paramInt & 0x40) != 0) {
        return new sc(this.a, paramDouble1, paramDouble2, paramBoolean, 6);
      }
      throw new IllegalArgumentException("unknown types: " + paramInt);
    }
  }
  
  public static class b_
    implements uc
  {
    private pg a;
    public static int b;
    
    public b_(pg parampg)
    {
      this.a = parampg;
    }
    
    public sc a(double paramDouble1, double paramDouble2, int paramInt, boolean paramBoolean)
    {
      boolean bool = ld.E;
      sc localsc = a(a(), b(), paramDouble1, paramDouble2, paramInt, paramBoolean);
      if ((bool) || (paramBoolean)) {
        if (!bool)
        {
          if ((paramInt & 0x10) != 0) {
            if (bool) {
              break label441;
            }
          }
        }
        else if (localsc.w())
        {
          if (bool) {
            break label441;
          }
          if (!localsc.p().i())
          {
            jg localjg;
            ld localld;
            jd localjd;
            if (!bool) {
              if ((paramInt & 0x1) != 0)
              {
                if (bool) {
                  break label271;
                }
                if ((paramInt & 0x40) != 0)
                {
                  if (bool) {
                    break label441;
                  }
                  localjg = localsc.p();
                  localld = localjg.hb();
                  if (localld == null) {
                    break label439;
                  }
                  if ((localjg.a() instanceof ce))
                  {
                    localjd = ce.a(localld, localjg.e());
                    if (((bool) || (localjd != null)) && ((bool) || ((localjd.f()) && ((bool) || (localjd.a(paramDouble1, paramDouble2)))))) {
                      return a(localjd);
                    }
                    if (((!bool) && (localld.n() == null)) || ((!bool) && (!localld.f(paramDouble1, paramDouble2)))) {
                      break label439;
                    }
                    return a(localld.n());
                  }
                  if (((!bool) && (localld.n() == null)) || ((!bool) && (!localld.f(paramDouble1, paramDouble2)))) {
                    break label439;
                  }
                  return a(localld.n());
                }
              }
            }
            label271:
            if (!bool) {
              if ((paramInt & 0x1) != 0)
              {
                if (bool) {
                  break label441;
                }
                localjg = localsc.p();
                localld = localjg.hb();
                if ((localld == null) || ((!bool) && (localld.n() == null)) || ((!bool) && (!localld.f(paramDouble1, paramDouble2)))) {
                  break label439;
                }
                return a(localld.n());
              }
            }
            if ((paramInt & 0x40) != 0)
            {
              if (bool) {
                break label441;
              }
              localjg = localsc.p();
              localld = localjg.hb();
              if ((localld != null) && ((localjg.a() instanceof ce)))
              {
                localjd = ce.a(localld, localjg.e());
                if (((bool) || (localjd != null)) && ((bool) || ((localjd.f()) && ((bool) || (localjd.a(paramDouble1, paramDouble2)))))) {
                  return a(localjd);
                }
              }
            }
          }
        }
      }
      label439:
      label441:
      return localsc;
    }
    
    protected sc a(pg parampg, g paramg, double paramDouble1, double paramDouble2, int paramInt, boolean paramBoolean)
    {
      Iterator localIterator = a(parampg, paramg, paramInt);
      return new sc(paramg, localIterator, paramDouble1, paramDouble2, paramBoolean);
    }
    
    protected pg a()
    {
      return this.a;
    }
    
    protected g b()
    {
      return a().a();
    }
    
    private static Iterator a(pg parampg, g paramg, int paramInt)
    {
      boolean bool = ld.E;
      Object localObject;
      if ((bool) || ((parampg.W() instanceof vd)))
      {
        vd localvd = (vd)parampg.W();
        localObject = parampg.M() >= parampg.X() ? localvd.a() : localvd.b();
        if (bool) {
          break label90;
        }
        if (!ld.D) {}
      }
      else
      {
        localObject = new nb();
      }
      label90:
      if ((bool) || (!Boolean.TRUE.equals(parampg.getClientProperty("Graph2DView.hitTestInvisibleElements"))))
      {
        int i = 1;
        return new v(((jc)localObject).b(paramg, paramInt), new fg(paramg, i, i, i, i));
      }
      return ((jc)localObject).b(paramg, paramInt);
    }
    
    private static sc a(e parame)
    {
      sc localsc = new sc();
      localsc.a(parame);
      return localsc;
    }
    
    private static sc a(jd paramjd)
    {
      sc localsc = new sc();
      localsc.a(paramjd);
      return localsc;
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.tc

 * JD-Core Version:    0.7.0.1

 */